import { getPermission } from '../api/permission'
import { menuPath } from '../util/menuPath'
export async function Loader() {
  const data = await getPermission()
  const { menuList, buttonList } = data
  const pathArr = menuPath(menuList)

  return {
    pathArr,
    buttonList
  }
}
